home *** CD-ROM | disk | FTP | other *** search
- Path: interramp.com!usenet
- From: Barnett@interramp.com (Barnett E. Kurtz)
- Newsgroups: comp.lang.c++
- Subject: Re: Windows Detection from DOS
- Date: Wed, 07 Feb 1996 13:37:10 GMT
- Organization: EntroData, Inc.
- Message-ID: <4fa73e$42s@usenet4.interramp.com>
- References: <4f6akt$q33@newsbf02.news.aol.com>
- Reply-To: Barnett@interramp.com
- NNTP-Posting-Host: ip214.philadelphia.pa.interramp.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Kev,
-
- Next time post questions like this in comp.os.ms-windows.programmer or
- comp.os.msdos.programmer. See also, the knowledge base at
- http://www.microsoft.com.
-
- The function listed below _may_ work, I am not sure how MS identifies
- Win95/NT to this function. You will have to try it. Also, beware some
- memory managers hook 160A. In any case AX should return non zero if
- Windows 386, Windows Enhanced is _not_ present. I don't know what it
- does with Windows 2.0/1.0.
- _____________________________________________________________
- INT 2F 160A - MS Windows 3.1 - IDENTIFY WINDOWS VERSION AND TYPE
-
-
- Category: W - MS Windows
-
- Inp.:
- AX = 160Ah
-
- Return: AX = 0000h if call supported
- BX = version (BH=major, BL=minor)
- CX = mode (0002h = standard, 0003h = enhanced)
-
- SeeAlso: AX=1600h,AX=4680h INT 2F
-
- Copied from Ralf Brown's Interrupt List
- ___________________________________________________________
- kevvance@aol.com (Kev Vance) wrote:
-
- >I have Borland Turbo C++ 3.0. I'm writing a game that cannot be run under
- >windows 3.x or '95. How do I detect if windows is running?
-
- >Thanx,
- >Kev
-
- -
- barnett@interramp.com
- -
-
-